from app.web import abstract

class Action(abstract.Action):
    
    def post(self):
        
        wishes = abstract.models.wish.listNewest(50)
        
        for wish in wishes:
            
            platform_id = abstract.utils.getPlatformID(wish.owner_id)
            
            if platform_id == 0: continue
            
            if wish.platform_id > 0: continue
            
            wish.platform_id = platform_id
            
            wish.put()

 